package demo.xml.bean;

import demo.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author m0v1
 * @date 2021年09月21日 10:45 上午
 */
@Component
public class ConsumerComponent {
    // 注:HelloService代理对象被spring容器管理,直接使用spring注解注入
    @Autowired
    private HelloService helloService;

    public void sayHello2Name(String name){
        System.out.println(helloService.sayHello(name));
    }
}
